package com.kgc.scd.service;

import com.kgc.scd.bean.User;
import com.kgc.scd.bean.UserVO;
import com.kgc.scd.util.RequestResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;

/**
 * @author: WangKuoKuo
 * @create: 2022-06-14 16:06
 * @description:
 **/
@FeignClient("blmall-server-wkk")
public interface UserServiceFeign {

    // 修改用户密码
    @PostMapping("/modUserPwd")
    RequestResult<String> modUserPwd(@RequestParam("userId") String userId,
                                   @RequestParam(value = "pwd",required = false) String pwd,
                                   @RequestParam("newPwd") String newPwd,
                                   @RequestParam("newAgainPwd") String newAgainPwd);

    // 查询个人中心
    @PostMapping("/queryPersonCenterInfo")
    RequestResult<UserVO> queryPersonCenterInfo(@RequestParam("userId") String userId);

    // 修改个人中心信息
    @PostMapping("/modifyPersonCenterInfo")
    RequestResult<String> modifyPersonCenterInfo(@RequestParam("userId") String userId,
                                                 @RequestBody User user);


}
